package com.hb.trans.global


import android.app.Activity
import android.app.Application
import android.os.Bundle
import com.basiclib.utils.L

class ActivityLifecycleCallbacksImpl : Application.ActivityLifecycleCallbacks {

    override fun onActivityCreated(activity: Activity, savedInstanceState: Bundle) {
        L.i(msg = activity.toString() + " - onActivityCreated")
    }

    override fun onActivityStarted(activity: Activity) {
        L.i(msg = activity.toString() + " - onActivityStarted")
    }

    override fun onActivityResumed(activity: Activity) {
        L.i(msg = activity.toString() + " - onActivityResumed")
    }

    override fun onActivityPaused(activity: Activity) {
        L.i(msg = activity.toString() + " - onActivityPaused")
    }

    override fun onActivityStopped(activity: Activity) {
        L.i(msg = activity.toString() + " - onActivityStopped")
    }

    override fun onActivitySaveInstanceState(activity: Activity, outState: Bundle) {
        L.i(msg = activity.toString() + " - onActivitySaveInstanceState")
    }

    override fun onActivityDestroyed(activity: Activity) {
        L.i(msg = activity.toString() + " - onActivityDestroyed")
    }
}
